package ex2.classification;

import java.util.LinkedHashMap;
import java.util.Map;

import ex2.PaymentClassification;
import ex2.trans.TimeCard;

public class HourlyClassification implements PaymentClassification {

    private double hourlyRate;
    private Map<String, TimeCard> timeCards = new LinkedHashMap<>();

    public HourlyClassification(double hourlyRate) {
        this.hourlyRate = hourlyRate;
    }

    public Object getHourlyRate() {
        return hourlyRate;

    }

    public TimeCard getTimeCardofData(String data) {
        return timeCards.get(data);

    }

    public void addTimeCard(TimeCard tc) {

        timeCards.put(tc.getData(), tc);
    }

}
